package com.yanqu.road.server.cmd.banquet;

import com.yanqu.road.pb.banquet.BanquetProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.banquet.BanquetModule;
import com.yanqu.road.server.pb.BanquetPb;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

//改成同步了
@Cmd(code = Protocol.S_BANQUET_INVITATION, desc = "请求请帖列表")
public class GetBanquetInvitationCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {

	}

	@Override
	public void sendData(GamePlayer player) {
		BanquetProto.BanquetInvitationResp.Builder respMsg = BanquetPb.parseBanquetInvitationRespMsg(player.getModule(BanquetModule.class).getUserBanquetInvitationMap());
		respMsg.setRet(ret);
		player.sendPacket(Protocol.U_BANQUET_INVITATION, respMsg);
	}
}
